Avoid unnecessarily creating local variables

<p>
  This rule is deprecated, use {rule:java:S1488} instead.
</p>
